package de.slothsoft.commons.html;

@SuppressWarnings("nls")
public class HtmlTags {

	static final String BRACKET_START = "<";
	static final String BRACKET_END = ">";
	static final String END_TAG = "/";

	public static final String HTML = "html";
	public static final String HTML_START = makeStartTag(HTML);
	public static final String HTML_END = makeEndTag(HTML);

	public static final String BOLD = "b";
	public static final String BOLD_START = makeStartTag(BOLD);
	public static final String BOLD_END = makeEndTag(BOLD);

	public static final String ITALIC = "i";
	public static final String ITALIC_START = makeStartTag(ITALIC);
	public static final String ITALIC_END = makeEndTag(ITALIC);

	public static final String UNDERLINE = "u";
	public static final String UNDERLINE_START = makeStartTag(UNDERLINE);
	public static final String UNDERLINE_END = makeEndTag(UNDERLINE);

	public static final String UNORDERED_LIST = "ul";
	public static final String UNORDERED_LIST_START = makeStartTag(UNORDERED_LIST);
	public static final String UNORDERED_LIST_END = makeEndTag(UNORDERED_LIST);

	public static final String ORDERED_LIST = "ol";
	public static final String ORDERED_LIST_START = makeStartTag(ORDERED_LIST);
	public static final String ORDERED_LIST_END = makeEndTag(ORDERED_LIST);

	public static final String LIST = "li";
	public static final String LIST_START = makeStartTag(LIST);
	public static final String LIST_END = makeEndTag(LIST);

	public static final String PARAGRAPH = "p";
	public static final String PARAGRAPH_START = makeStartTag(PARAGRAPH);
	public static final String PARAGRAPH_END = makeEndTag(PARAGRAPH);

	public static final String LINE_BREAK = makeSingleTag("br");

	static String makeStartTag(String tag) {
		return BRACKET_START + tag + BRACKET_END;
	}

	static String makeEndTag(String tag) {
		return BRACKET_START + END_TAG + tag + BRACKET_END;
	}

	static String makeSingleTag(String tag) {
		return BRACKET_START + tag + END_TAG + BRACKET_END;
	}

	private HtmlTags() {
		// *hide*
	}
}
